import java.io.Serializable;
import java.net.InetAddress;
import java.util.Date;

public class ServerDescriptor implements Serializable {
    public InetAddress address;
    public int port;
    public boolean isMaster;
    public char keyFrom;
    public char keyTo;
    public Date lastSyncDate;

    public ServerDescriptor(InetAddress address, int port, boolean typeServer, char keyFrom, char keyTo) {
        this.address = address;
        this.port = port;
        this.isMaster = typeServer;
        this.keyFrom = keyFrom;
        this.keyTo = keyTo;
    }

    public ServerDescriptor(InetAddress address, int port, boolean serverType)
    {
        this.address = address;
        this.port = port;
        this.isMaster = serverType;
    }

    public Date getlastSyncDate() {
        return lastSyncDate;
    }
}